home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7416 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.8 KB  |  41 lines

  1. Path: mn5.swip.net!news
  2. From: dan.eriksson@vxjkatedral.se (Peter Liljenberg)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Refreshing MX gadgets
  5. Date: 16 Apr 1996 07:43:41 GMT
  6. Organization: VΣxj÷ Katedralskola
  7. Message-ID: <4kvj3d$8r9@mn5.swip.net>
  8. References: <3169a262@beachyhd.demon.co.uk>
  9. Reply-To: dan.eriksson@vxjkatedral.se (Peter Liljenberg)
  10. NNTP-Posting-Host: tty17-53.swipnet.se
  11. X-Newsreader: WinVN 0.92.2
  12.  
  13. In article <3169a262@beachyhd.demon.co.uk>, Adam@beachyhd.demon.co.uk says:
  14. >
  15. >Hi all,
  16. >
  17. >I'm having a few problems with MX type GadTools gadgets.
  18. >
  19. >I have two MX gadgets, the second of which must contain different items
  20. >depending upon which item is selected in the first. When the first item is
  21. >changed, the list of items in the second is to immediately update to show the
  22. >items that are now available for it.
  23. >
  24. >Now I understand that it's not possible to change the labels for the MX gadget
  25. >once it has been created, so instead I'm removing the entire gadget list for
  26. >the window and recreating it with the new labels. This works, *BUT* I can't get
  27. >it to redraw the changed MX gadget. The imagery stays exactly as it was. If I
  28. >click on one of the radio buttons, the text for that button will update (and
  29. >the radio button will appear if it wasn't already visible). But how can I make
  30. >this happen automatically?
  31. >
  32. >I've tried calling GT_RefreshWindow() after recreating the gadgets, and that
  33. >doesn't work. I've tried calling RefreshGList() (telling it to update only 1
  34. >gadget, that being my MX gadget -- I assume this doesn't work because GadTools
  35. >gadgets consist of a number of intuition gadgets?). None of this seems to work.
  36.  
  37. You must first EraseRect() the window (if you erase the whole window you must use
  38. RefreshWindowFrame() (sp?)), then RefreshGList() and finally GT_RefreshWindow().
  39.  
  40. Peter Liljenberg
  41.